package com.cmc.cloud.cmclink.doc.vo.special.dgprohibitedvo;

import java.time.LocalDate;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 危险品禁接清单 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class DgProhibitedBaseVO {

    @Schema(description = "清单类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "dgprohibited.listtype.notnull")
    @Length(max = 64, message = "{dgprohibited.listtype.max.length}")
    private String listType;

    @Schema(description = "代码类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{dgprohibited.codetype.notnull}")
    @Length(max = 64, message = "{dgprohibited.codetype.max.length}")
    private String codeType;

    @Schema(description = "代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{dgprohibited.codeValue.notnull}")
    @Length(max = 50, message = "{dgprohibited.codeValue.max.length}")
    private String codeValue;

    @Schema(description = "港口类型", example = "1")
    @Length(max = 50, message = "{dgprohibited.porttype.max.length}")
    private String portType;

    @Schema(description = "危险货物分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{dgprohibited.imoClass.notnull}")
    @Length(max = 20, message = "{dgprohibited.imoClass.max.length}")
    private String imoClass;

    @Schema(description = "箱型")
    @Length(max = 50, message = "{dgprohibited.cntrtypes.max.length}")
    private String cntrTypes;

    @Schema(description = "备注", example = "你猜")
    @Length(max = 200, message = "{dgprohibited.remark.max.length}")
    private String remark;

    @Schema(description = "生效时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{dgprohibited.startdate.notnull}")
    private LocalDate startDate;

    @Schema(description = "失效时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{dgprohibited.enddate.notnull}")
    private LocalDate endDate;

}
